package cn.tedu.boot52.mapper;

import cn.tedu.boot52.vo.Pic;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PicMapper {
    @Insert("insert into pic values(null,#{intro},#{url})")
    void insert(Pic pic);
    @Select("select * from pic")
    List<Pic> select();

}
